Ext.onReady(function(){

	//================================================================
	// Set ExtJS proterty.
	//================================================================
	Ext.BLANK_IMAGE_URL = m_ContextName + '/common/ext-2.2/resources/images/default/s.gif';
	Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
	Ext.QuickTips.init();
	
	//================================================================
	// Set Layout using Ext Viewport
	//================================================================
	var viewport = new Ext.Viewport({
		layout: 'border',
		items: [
			new Ext.Panel({
				region: 'center',
				id: 'id_panel_list',
				contentEl: 'id_div_area',
				title: 'Web Site 점검요약',
				margins: '0 0 0 0'
			}),
			gridTypeCount
		]
	});
	
	function fnLoadTypeCount()
	{
		httpProxyTypeCount.conn.url = m_ContextName + '/analysis/ajax_detect_count.json';
		storeTypeCount.load();
	}
	
	// 화면로드가 끝난 후 로딩.
	fnLoadTypeCount();
	
	storeTypeCount.on('load', function(){
		m_AnalysisType1 = storeTypeCount.getAt(0).data.cnt;
		m_AnalysisType2 = storeTypeCount.getAt(1).data.cnt;
		m_AnalysisType3 = storeTypeCount.getAt(2).data.cnt;
		m_AnalysisType4 = storeTypeCount.getAt(3).data.cnt;
		
		fnLoadChart();
	});
		
});

	
	
	
	
	
	
	